<div class="easyui-layout plugins" data-options="fit:true" ui="saleInit" id="${id}">
	<div data-options="region:'north',border:false" class="queryContent">
		客户:&nbsp;&nbsp;<input id="customerID" type="hidden"/>
		<input id="customerName" type="text" size="30" readonly="readonly"/>
		<input type="button" id="customerSearch" value="..." style="height: 15px;width: 25px;margin-bottom: 0px"/>&nbsp;&nbsp;&nbsp; 
		销售单编号:<input id="saleCode" type="text" size="14"/>&nbsp;&nbsp;&nbsp; 
		日期:&nbsp;&nbsp;<input id="beginDate" type="text" size="14" class="Wdate"  readonly="readonly" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'});"/>
		----&nbsp;&nbsp;<input id="endDate" type="text" size="14" class="Wdate"  readonly="readonly" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'});"/>&nbsp;&nbsp;&nbsp; 
		<input type="button" class="right-button02" id="search" style="margin-left: 40px;cursor: pointer;" value="查 询" />
		<input type="reset" class="right-button02" id="reset" style="margin-left: 10px;cursor: pointer;" value="重 置" />
	</div>
	<div data-options="region:'center',border:false" style="width: 100%;height: 100%">
		<div id="saleList"></div>
	</div>
	<div id="editDialog">
		<form method="post" name="saleForm" id="saleForm">
			<table border="0" cellpadding="2" cellspacing="1" style="width: 100%">
				<tr>
					<td nowrap width="15%" >&nbsp;&nbsp;&nbsp;&nbsp;销售单号:</td>
					<td>
						<input type="hidden" name="saleID" id="saleID"/>
						<input type="text" name="saleCode" id="saleCode" class="text" style="width: 250px" size="40" readonly="readonly"/>
					</td>
					<td nowrap width="15%">&nbsp;&nbsp;&nbsp;&nbsp;客户:</td>
					<td>
						<input type="hidden" name="customer.customerID" id="customerID"/>
						<input type="text" name="customer.customerName" id="customerName" class="text" style="width: 250px" size="40" />
						<input type="button" id="editcustomerSearch" value="..." style="height: 15px;width: 25px;margin-bottom: 0px"/>&nbsp;&nbsp;&nbsp;
					</td>
				</tr>
				<tr>
					<td >&nbsp;&nbsp;&nbsp;&nbsp;销售日期:</td>
					<td>
						<input type="text" name="saleDate" id="saleDate" class="text Wdate" style="width: 250px" 
						size="40" readonly="readonly" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'});"/>
					</td>
					<td >&nbsp;&nbsp;&nbsp;&nbsp;出货仓库:</td>
					<td>
						<input type="text" name="storeHouse.dataDictionaryID" id="storeHouseID" class="text" style="width: 250px" size="40" />
					</td>
				</tr>
				<tr>
					<td >&nbsp;&nbsp;&nbsp;&nbsp;总额:</td>
					<td>
						<input type="text" name="amount" id="amount" class="text" style="width: 250px" size="40" readonly="readonly"/>
					</td>
					<td >&nbsp;&nbsp;&nbsp;&nbsp;优惠金额:</td>
					<td>
						<input type="text" name="discountAmount" id="discountAmount" class="text easyui-numberbox" data-options="min:0,precision:2" style="width: 250px" size="40" />
					</td>
				</tr>
				<tr>
					<td >&nbsp;&nbsp;&nbsp;&nbsp;现金金额:</td>
					<td>
						<input type="text" name="cash" id="cash" class="text easyui-numberbox" data-options="min:0,precision:2" style="width: 250px" size="40" />
					</td>
					<td >&nbsp;&nbsp;&nbsp;&nbsp;刷卡金额:</td>
					<td>
						<input type="text" name="card" id="card" class="text easyui-numberbox" data-options="min:0,precision:2" style="width: 250px" size="40" />
					</td>
				</tr>
				<tr>
					<td >&nbsp;&nbsp;&nbsp;&nbsp;会员卡金额:</td>
					<td>
						<input type="text" name="member" id="member" class="text easyui-numberbox" data-options="min:0,precision:2" style="width: 250px" size="40" />
					</td>
					<td >&nbsp;&nbsp;&nbsp;&nbsp;经办人:</td>
					<td>
						<input type="text" name="saleer" id="saleer" class="text" style="width: 250px" size="40" />
					</td>
				</tr>
				<tr>
					<td nowrap >&nbsp;&nbsp;&nbsp;&nbsp;备注:</td>
					<td colspan="3">
						<input type="text" name="note" id="note" class="text" style="width: 250px" size="40"/>
					</td>
				</tr>
			</table>
			<input type="hidden" id="productids" name="productids"/>
			<input type="hidden" id="qtys" name="qtys"/>
			<input type="hidden" id="prices" name="prices"/>
			<input type="hidden" id="isFrees" name="isFrees"/>
			<input type="hidden" id="notes" name="notes"/>
		</form>
		<div id="saledetailList"></div>
	</div>
	<div id="selectCustomerDialog">
		客户编号:&nbsp;&nbsp;<input id="customerCode" type="text" size="12"/>&nbsp;&nbsp;&nbsp; 
		客户姓名:&nbsp;&nbsp;<input id="customerName" type="text" size="30"/>&nbsp;&nbsp;&nbsp; 
		<input type="button" class="right-button02" id="selectCustomerSearch" style="margin-left: 40px;cursor: pointer;" value="查 询" />
		<div id="customerList"></div>
	</div>
	<div id="detatilDialog">
		<div id="detailList"></div>
	</div>
	<div id="selectProductDialog">
		种类:&nbsp;&nbsp;<input id="item" type="text" size="12"/>&nbsp;&nbsp;&nbsp; 
		商品编号:&nbsp;&nbsp;<input id="code" type="text" size="12"/>&nbsp;&nbsp;&nbsp; 
		商品名称:&nbsp;&nbsp;<input id="name" type="text" size="30"/>&nbsp;&nbsp;&nbsp; 
		<input type="button" class="right-button02" id="selectProductSearch" style="margin-left: 40px;cursor: pointer;" value="查 询" />
		<div id="productList"></div>
	</div>
</div>

